package com.qf.service;

import com.qf.commons.TableData;
import com.qf.entity.Notify;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface NotifyService {
    //根据用户id获取所有通知的信息
    Map getTableNotify(Integer uid, Integer offset, Integer limit);
    //未读通知改变为已读状态
    void changeNotifyStatus(Integer uid,Integer nid);
    //插入新通知
    void insertNotify(Integer uid,
                      String title,
                      String path
                      );
    //获取未读通知
    List<Notify> getUnreadNotify(Integer uid);

    //获取未读通知数量
    Integer getUnreadNotifyCount(Integer uid);

    //改变通知内容
    void changeNotifyContent(Integer uid,
                             String title,
                             String path,
                             Integer nid
                             );
}
